package com.jrzh.mvc.model.sys;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.jrzh.framework.annotation.UniqueValue;
import com.jrzh.framework.base.model.GeneralModel;

@Entity
@Table(name = "sys_file_rules")
public class FileRuleModel extends GeneralModel {
    
    /**
     * 键
     */
    @Column(name = "_key")
    @UniqueValue(message="关键字#{value}已存在")
    private String key;
    /**
     * 名称
     */
    @Column(name = "_name")
    private String name;

    public void setKey(String key) {
        this.key = key;
    }
    
    public String getKey() {
        return this.key;
    }
    public void setName(String name) {
        this.name = name;
    }
    
    public String getName() {
        return this.name;
    }

}